package com.gnrsoft.springboot_test.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gnrsoft.springboot_test.model.User;
import com.gnrsoft.springboot_test.service.UserService;

import lombok.extern.slf4j.Slf4j;
@Slf4j
@RestController
public class UserController {

	@Resource
	private UserService userService;
	
	
	@RequestMapping("/getUserInfo")
	public User getUserInfo(){
		log.info("getUserInfo start...");
		User user = userService.findUserInfo();
		log.info("getUserInfo end...");
		return user;
	}
	
}
